﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserList.aspx.cs" Inherits="User_UserList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="../UserControl/MenuControl.ascx" TagName="menu" TagPrefix="UC" %>
<%@ Register Src="../UserControl/Top.ascx" TagName="top" TagPrefix="UC" %>
<%@ Register Src="../UserControl/foot.ascx" TagName="footer" TagPrefix="UC" %>
<%@ Import Namespace="BLL.Common" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>会员用户展示</title>
    <link type="text/css" href="../Styles/Style.css" rel="stylesheet" />
    <link type="text/css" href="../Scripts/UIModule/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
    <script type="text/javascript" src="../Scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript" src="../Scripts/UIModule/jquery-ui-1.8.16.custom.min.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <UC:top ID="top" runat="server"></UC:top>
    <UC:menu ID="menu" runat="server"></UC:menu>
    <div class="page_right" id="pright">
        <div class="right_top">
            <div class="ltitle">
                <ul class="right_top_down">
                    <li class="dtitle"><span class="iconE"></span><font><b>您当前的位置:</b> 首页>>用户列表</font>
                    </li>
                </ul>
            </div>
        </div>
        <!--right middle-->
        <div class="right_middle" style="overflow: hidden;">
            <div style="min-height: 500px;">
                <ul style="width: 100%; height: auto; margin: 0px auto; overflow: auto;">
                    <asp:DataGrid ID="UserDataGrid" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        Height="1px" Width="97%" GridLines="Both" ForeColor="#000000" Font-Bold="False"
                        Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"
                        PageSize="5" OnPageIndexChanged="UserDataGrid_PageIndexChanged" OnCancelCommand="UserDataGrid_CancelCommand"
                        OnDeleteCommand="UserDataGrid_DeleteCommand" OnEditCommand="UserDataGrid_EditCommand"
                        OnItemDataBound="UserDataGrid_ItemDataBound" OnUpdateCommand="UserDataGrid_UpdateCommand"
                        HeaderStyle-Wrap="false" ItemStyle-Wrap="false">
                        <Columns>
                            <asp:HyperLinkColumn Target="_self" DataTextFormatString="查看" DataTextField="UserPassportId"
                                DataNavigateUrlField="UserPassportId" DataNavigateUrlFormatString="./ShowUserInfo.aspx?UID={0}"
                                HeaderText="查看" />
                            <asp:HyperLinkColumn Target="_self" DataTextFormatString="编辑" DataTextField="UserPassportId"
                                DataNavigateUrlField="UserPassportId" DataNavigateUrlFormatString="./UserAdd.aspx?UID={0}"
                                HeaderText="编辑" />
                            <asp:ButtonColumn CommandName="Delete" HeaderText="删除" Text="删除"></asp:ButtonColumn>
                            <asp:BoundColumn DataField="UserPassportId" HeaderText="编号" ReadOnly="True" Visible="false">
                            </asp:BoundColumn>
                            <asp:BoundColumn DataField="RealName" HeaderText="真实姓名" ReadOnly="True"></asp:BoundColumn>
                            <asp:BoundColumn DataField="NickName" HeaderText="昵称" ItemStyle-Wrap="false"></asp:BoundColumn>
                            <asp:BoundColumn DataField="Email" HeaderText="邮箱" ItemStyle-Width="150px"></asp:BoundColumn>
                            <asp:BoundColumn DataField="Mobile" HeaderText="电话" ItemStyle-Width="100px"></asp:BoundColumn>
                            <asp:BoundColumn DataField="IDCardNum" HeaderText="身份证号" ReadOnly="True"></asp:BoundColumn>
                            <%--<asp:BoundColumn DataField="UserType" HeaderText="角色" ReadOnly="True"></asp:BoundColumn>--%>
                            <asp:TemplateColumn HeaderText="角色">
                                <ItemTemplate>
                                    <asp:Label ID="UserType" runat="server" Text='<%# CommonUtils.GetRoleValue(DataBinder.Eval(Container, "DataItem.UserType").ToString()) %>'>
                                    </asp:Label>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <asp:DropDownList ID="DllUserType" runat="server">
                                        <asp:ListItem Value="1">自强会员</asp:ListItem>
                                        <asp:ListItem Value="2">天使会员</asp:ListItem>
                                        <asp:ListItem Value="3">后台管理员</asp:ListItem>
                                        <asp:ListItem Value="4">公益团体</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                            </asp:TemplateColumn>
                            <%--<asp:BoundColumn DataField="Gender" HeaderText="性别" ReadOnly="True"></asp:BoundColumn>--%>
                            <asp:TemplateColumn HeaderText="性别">
                                <ItemTemplate>
                                    <asp:Label ID="Gender" runat="server" Text='<%# CommonUtils.GetGenderValue(DataBinder.Eval(Container, "DataItem.Gender").ToString()) %>'>
                                    </asp:Label>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:BoundColumn DataField="Birthday" HeaderText="出生日期" ReadOnly="True"></asp:BoundColumn>
                            <%--<asp:BoundColumn DataField="Education" HeaderText="文化程度"></asp:BoundColumn>--%>
                            <asp:TemplateColumn HeaderText="文化程度">
                                <ItemTemplate>
                                    <asp:Label ID="Education" runat="server" Text='<%# CommonUtils.GetEducationValue(DataBinder.Eval(Container, "DataItem.Education").ToString()) %>'>
                                    </asp:Label>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <asp:DropDownList ID="DllEducation" runat="server">
                                        <asp:ListItem Value="1">小学或以下</asp:ListItem>
                                        <asp:ListItem Value="2">初中</asp:ListItem>
                                        <asp:ListItem Value="3">高中/职业高中</asp:ListItem>
                                        <asp:ListItem Value="4">中专/技校</asp:ListItem>
                                        <asp:ListItem Value="5">大专/大学非本科</asp:ListItem>
                                        <asp:ListItem Value="6">大学本科/学士</asp:ListItem>
                                        <asp:ListItem Value="7">研究生/硕士</asp:ListItem>
                                        <asp:ListItem Value="8">博士及以上</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                            </asp:TemplateColumn>
                            <%--<asp:BoundColumn DataField="ProvinceId" HeaderText="省份" ReadOnly="True"></asp:BoundColumn>--%>
                            <asp:TemplateColumn HeaderText="省市">
                                <ItemTemplate>
                                    <asp:Label ID="ProvinceId" runat="server" Text='<%# CommonUtils.GetProvinceValue(DataBinder.Eval(Container, "DataItem.ProvinceId").ToString()) %>'>
                                    </asp:Label>
                                    <asp:Label ID="CityId" runat="server" Text='<%# CommonUtils.GetCityValue(DataBinder.Eval(Container, "DataItem.CityId").ToString()) %>'>
                                    </asp:Label>
                                </ItemTemplate>
                                <%-- <EditItemTemplate>
                                    <asp:DropDownList ID="DllProvinceId" runat="server">
                                    </asp:DropDownList>
                                </EditItemTemplate>--%>
                            </asp:TemplateColumn>
                            <%--<asp:BoundColumn DataField="CityId" HeaderText="城市" ReadOnly="True"></asp:BoundColumn>--%>
                            <%-- <asp:TemplateColumn HeaderText="城市">
                                <ItemTemplate>
                                    <asp:Label ID="CityId" runat="server" Text='<%# CommonUtils.GetCityValue(DataBinder.Eval(Container, "DataItem.CityId").ToString()) %>'>
                                    </asp:Label>
                                </ItemTemplate>--%>
                            <%--<EditItemTemplate>
                                    <asp:DropDownList ID="DllCityId" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DDL_province_SelectedIndexChanged">
                                    </asp:DropDownList>
                                </EditItemTemplate>--%>
                            <%--</asp:TemplateColumn>--%>
                            <asp:BoundColumn DataField="Adress" HeaderText="详细地址" ItemStyle-Width="50px"></asp:BoundColumn>
                            <%--<asp:BoundColumn DataField="PersonalInCome" HeaderText="个人收入"></asp:BoundColumn>--%>
                            <asp:TemplateColumn HeaderText="个人收入(元)">
                                <ItemTemplate>
                                    <asp:Label ID="PersonalInCome" runat="server" Text='<%# CommonUtils.GetInComeValue(DataBinder.Eval(Container, "DataItem.PersonalInCome").ToString()) %>'>
                                    </asp:Label>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <asp:DropDownList ID="DllPersonalInCome" runat="server">
                                        <asp:ListItem Value="1">人民币 1000 元以下</asp:ListItem>
                                        <asp:ListItem Value="2">人民币 1000-3000 元</asp:ListItem>
                                        <asp:ListItem Value="3">人民币 3000-5000 元</asp:ListItem>
                                        <asp:ListItem Value="4">人民币 5000-8000 元</asp:ListItem>
                                        <asp:ListItem Value="5">人民币 8000-10000 元</asp:ListItem>
                                        <asp:ListItem Value="6">人民币 10000-20000 元</asp:ListItem>
                                        <asp:ListItem Value="7">人民币20000-50000元</asp:ListItem>
                                        <asp:ListItem Value="8">人民币50000元以上</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                            </asp:TemplateColumn>
                            <%--<asp:BoundColumn DataField="FamilyInCome" HeaderText="家庭收入"></asp:BoundColumn>--%>
                            <asp:TemplateColumn HeaderText="家庭收入(元)">
                                <ItemTemplate>
                                    <asp:Label ID="FamilyInCome" runat="server" Text='<%# CommonUtils.GetInComeValue(DataBinder.Eval(Container, "DataItem.FamilyInCome").ToString()) %>'>
                                    </asp:Label>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <asp:DropDownList ID="DllFamilyInCome" runat="server">
                                        <asp:ListItem Value="1">人民币 1000 元以下</asp:ListItem>
                                        <asp:ListItem Value="2">人民币 1000-3000 元</asp:ListItem>
                                        <asp:ListItem Value="3">人民币 3000-5000 元</asp:ListItem>
                                        <asp:ListItem Value="4">人民币 5000-8000 元</asp:ListItem>
                                        <asp:ListItem Value="5">人民币 8000-10000 元</asp:ListItem>
                                        <asp:ListItem Value="6">人民币 10000-20000 元</asp:ListItem>
                                        <asp:ListItem Value="7">人民币20000-50000元</asp:ListItem>
                                        <asp:ListItem Value="8">人民币50000元以上</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                            </asp:TemplateColumn>
                            <%--<asp:BoundColumn DataField="UserName" HeaderText="用户名" ReadOnly="True"></asp:BoundColumn>--%>
                            <asp:BoundColumn DataField="LastUpdate" HeaderText="最后更新时间" ReadOnly="True"></asp:BoundColumn>
                            
                            <%--<asp:TemplateColumn HeaderText="编辑">
                                <ItemTemplate>                                    
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" CommandName="Edit"
                                        Text="编辑"></asp:LinkButton>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <asp:LinkButton ID="link1" runat="server" CommandName="Update" Text="更新" CausesValidation="False"></asp:LinkButton>&nbsp;
                                    <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="false" CommandName="Cancel"
                                        Text="取消"></asp:LinkButton>
                                </EditItemTemplate>
                            </asp:TemplateColumn>--%>
                        </Columns>
                        <HeaderStyle Font-Bold="True" BackColor="#507CD1" ForeColor="White" />
                        <PagerStyle NextPageText="下一页" PrevPageText="上一页" BackColor="InactiveCaptionText"
                            ForeColor="Black" HorizontalAlign="Right" Font-Size="Larger" PageButtonCount="3" />
                        <FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True" />
                        <SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <EditItemStyle BackColor="#2461BF" />
                        <AlternatingItemStyle BackColor="White" />
                        <ItemStyle BackColor="#EFF3FB" />
                    </asp:DataGrid>
            </div>
        </div>
    </div>
    </form>
</body>
<UC:footer ID="footer" runat="server" />
</html>
